package com.atguigu.ssyx.activity.mapper;

import com.atguigu.ssyx.model.activity.ActivityInfo;
import com.atguigu.ssyx.model.activity.ActivityRule;
import com.atguigu.ssyx.model.activity.ActivitySku;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author LiJun
* @description 针对表【activity_info(活动表)】的数据库操作Mapper
* @createDate 2025-05-11 20:52:30
* @Entity com.atguigu.ssyx.activity.ActivityInfo
*/
@Repository
public interface ActivityInfoMapper extends BaseMapper<ActivityInfo> {

    List<Long> selectExistSkuIdList(List<Long> skuIdList);

    List<ActivityRule> selectActivityRuleList(Long skuId);

    /**
     * 根据skuIdList查询对应的活动列表
     * @param skuIdList
     * @return
     */
    List<ActivitySku> selectCartActivityList(@Param("skuIdList") List<Long> skuIdList);

}




